package com.linys.scala.qf.day03

/**
  * Created by admin on 2019/10/23.
  */
object Func {

  val f1: (Int, Int) => Int = (x, y) => x+y
  def m2(f: (Int, Int) => Int, x: Tuple2[Int, Int]): Int = f(x._1, x._2)
  def main(args: Array[String]): Unit = {
    println(m2(f1, (5,6)))
  }


}
